package com.roncoo.chapter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wdf
 * @since 2021-04-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="EduChapterPeriod对象", description="")
public class EduChapterPeriod extends Model<EduChapterPeriod> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "课时Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @JsonFormat(shape= JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @JsonFormat(shape= JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date modifiedTime;

    @ApiModelProperty(value = "课程ID")
    private Integer courseId;

    @ApiModelProperty(value = "对应章ID")
    private Integer chapterId;

    @ApiModelProperty(value = "节的标题")
    private String periodName;

    @ApiModelProperty(value = "是否是免费的")
    private Integer isFree;

    @ApiModelProperty(value = "课件名")
    private String docName;

    @ApiModelProperty(value = "课件的地址")
    private String docUrl;

    @ApiModelProperty(value = "视频的编号--->对应(course_video)")
    private Double videoId;

    @ApiModelProperty(value = "是否显示")
    private Integer isshow;

    @ApiModelProperty(value = "是否显示")
    private Integer isshow1;

    @ApiModelProperty(value = "是否显示")
    private Integer isshow2;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
